package com.dxy.dxyproduct.repository;

import com.dxy.dxyproduct.DO.ProductInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ProductInfoRepository extends JpaRepository<ProductInfo,String> {


    ProductInfo findByProductId(String productId);


    int deleteByProductId(String productId);

    Page<ProductInfo> findAll(Specification<ProductInfo> specification, Pageable pageable);
}
